package svc

import (
	"center-data-platform/app/notice/internal/config"
	"center-data-platform/app/notice/model"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

type ServiceContext struct {
	Config      config.Config
	NoticeModel model.SystemnotificationsModel
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:      c,
		NoticeModel: model.NewSystemnotificationsModel(sqlx.NewMysql(c.Mysql.Datasource)),
	}
}
